package com.muyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.model.entity.UserEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName: UserService
 * @Author: Zirun.Xin
 * @Date: 2025/4/9 下午3:59
 * @Version: 1.0
 * @Description: 用户业务层
 */
public interface UserService extends IService<UserEntity> {

    /**
     * excel批量导入用户
     *
     * @param file excel文件
     * @return 是否成功
     */
    Boolean importUsers(MultipartFile file);

    /**
     * excel批量导出用户
     *
     * @param response servlet响应
     */
    void exportUsers(HttpServletResponse response);

    /**
     * excel批量导出用户（携带图片版）
     *
     * @param response servlet响应
     */
    void exportUsersToExcel(HttpServletResponse response);

    /**
     * word文档导出到一个模板中
     *
     * @param response servlet响应
     */
    void exportUsersToWordAll(HttpServletResponse response);

    /**
     * word文档导出
     *
     * @param response servlet响应
     */
    void exportUsersToWord(HttpServletResponse response);

    /**
     * excel多sheet导入
     *
     * @param file excel文件
     */
    void importForSheetUsers(MultipartFile file);

    /**
     * excel多sheet导出
     *
     * @param response servlet响应
     */
    void exportForSheetUsers(HttpServletResponse response);

    /**
     * 导出pdf文件
     *
     * @param response servlet响应
     */
    void exportPdfUsers(HttpServletResponse response);
}
